<template>
    <div class="smartMoney-container">
        <div class="left">
            <div class="top">
                <v-breadcrumbs>
                    <v-breadcrumbs-item v-for="(item, index) in breadcrumbs">
                        <span :class="['breadcrumbs-item', index == 0 ? 'long' : '']"
                            :style="{ color: `${index == 0 ? '#B1B6C6' : '#EAECEF'}` }" @click="backTo(index)">{{ item.title
                            }}</span>
                        <v-breadcrumbs-divider v-if="index == 0">
                            <v-icon class="top-breadcrumbs" icon="mdi-chevron-right"></v-icon>
                        </v-breadcrumbs-divider>
                    </v-breadcrumbs-item>
                </v-breadcrumbs>
            </div>
            <div class="left-title">{{ $t('message.Clever_Deal.title.a') }}</div>
            <div class="left-table">
                <smartTable></smartTable>
            </div>
        </div>
        <div class="right">
            <rightRank></rightRank>
        </div>
    </div>
</template>

<script setup lang="ts">
import { ref, reactive, toRefs } from "vue"
import i18n from "@/locals";
import smartTable from './components/smart-table.vue';
import rightRank from './components/ranks.vue';
import { useRouter } from "vue-router";
const router = useRouter()
const breadcrumbs = [{
    title: i18n.global.t("message.News.info.b"),
    disabled: false,
    href: '/',
}, {
    title: i18n.global.t("message.Clever_Deal.title.a"),
    disabled: false,
}]
const backTo = (e: any) => {
    console.log('点击', e)
    if (e == 0) {
        router.push("/");
    }
}

</script>
<style lang="less" scoped>
@import url("./index.less");
</style>